package com.test3;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

import org.apache.commons.collections4.map.HashedMap;
import org.apache.commons.lang3.StringUtils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.demo2.Test;
import com.test.User;

import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.CharsetUtil;
import cn.hutool.core.util.URLUtil;

public class Test9 {
	
	public static void main(String[] args) throws UnsupportedEncodingException {
		String a = " a a a ";
//		String b = a.substring(1);
//		System.out.println(a);
//		System.out.println(b);
//		System.out.println(JSON.toJSONString(TODAY.DISCOUNT));
//		String url = "https://www.baidu.com";
//		String end = URLEncoder.encode(url,CharsetUtil.UTF_8);
//		System.err.println(end);
//		System.err.println(URLDecoder.decode(end,CharsetUtil.UTF_8));
		//去包装
		String yy = "as";
		Object tt = yy;
		System.err.println(tt.getClass());
		String[] cc = {"123"};
		
		List<User> lists = Arrays.asList(new User());
		lists.stream().map(User::getName);
		
		StringUtils.join(cc,",");
		int t = 0;
        while (t<1) {
        	System.out.println(t);
            t++;          
        }
		System.out.println(t);

		System.out.println(a.trim());
		
	}
	
	

    public enum TODAY{
        DISCOUNT(1,"今日特惠"),LIVE(2,"今日直播");
        private Integer value;
        private String title;

        TODAY(Integer value, String title) {
            this.value = value;
            this.title = title;
        }

        public static List getmap(){
            TODAY[] arr = TODAY.values();
            List list = Arrays.stream(arr).collect(Collectors.toList());
            return list;
        }
    }

}
